import { Injectable, NestMiddleware } from '@nestjs/common';
import { Request, Response } from 'express';

@Injectable()
export class LoggerMiddleware implements NestMiddleware {
  resolve() {
    return (res: Response, req: Request, next: Function) => {
      console.log(req.path);
      console.log('this is user request！！！！！！！！')
      next();
    }
  }
}